import React from 'react';
import styles from './index.less';
import { Link, Route, Router, Switch } from 'umi';
import Home from './home';
import My from './my';
export default () => {
  return (
    <div>
      <ul>
        <Link to='/home'><li>home</li></Link>
        <Link to='/my'><li>my</li></Link>
      </ul>
      <h1 className={styles.title} > Page index </h1>
      <Switch>
        <Route path='/home' component={Home}>
        </Route>
        <Route path='/my'>
          <My></My>
        </Route>
      </Switch>
    </div>
  );
}

